﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LevenBlog.Core.Entities;

namespace LevenBlog.Core.Data
{
    public interface IComment
    {
        int Count(IDbProvider provider, CommentState state);

        int Count(IDbProvider provider, int blogID, CommentState state);

        void Insert(IDbProvider provider, lb_comment comment);

        void Update(IDbProvider provider, lb_comment comment);

        void Delete(IDbProvider provider, int id);

        void DeleteFromBlogID(IDbProvider provider, int blogID);

        lb_comment Get(IDbProvider provider, int id);

        IList<lb_comment> Get(IDbProvider provider, int pageSize, int currentPage, CommentState state);

        IList<lb_comment> GetFromBlogID(IDbProvider provider, int blogID, int pageSize, int currentPage, CommentState state);
    }
}
